<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>联系我 - 你的名字</title>
  <style>
    body {
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background: #f5f5f5;
      color: #333;
      line-height: 1.6;
      padding: 20px;
      max-width: 500px;
      margin: 20px auto;
      text-align: center;
    }
    .card {
      background: white;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    h1 { font-size: 20px; margin-bottom: 20px; }
    .btn {
      display: block;
      width: 80%;
      margin: 16px auto;
      padding: 14px;
      background: #007AFF;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
    }
    .btn:hover { background: #0056b3; }
    .wechat-qrcode {
      width: 180px;
      height: 180px;
      margin: 20px auto;
      border: 1px solid #eee;
      border-radius: 8px;
    }
    .tip { font-size: 12px; color: #888; margin-top: 10px; }
  </style>
</head>
<body>

  <div class="card">
    <h1>欢迎联系我</h1>

    <!-- 手机号复制 -->
    <button class="btn" onclick="copyText('13268294296')">
      📱 一键复制手机号
    </button>

    <!-- 邮箱复制 -->
    <button class="btn" onclick="copyText('hexy222@qq.com')">
      📧 一键复制邮箱地址
    </button>

    <!-- 微信二维码 -->
    <div>
      <p>扫码添加微信</p>
      <img src="wechatcode.png" alt="微信二维码" class="wechat-qrcode" />
      <p class="tip">长按识别二维码</p>
    </div>
  </div>

  <script>
    function copyText(text) {
      // 清理格式（去掉横线等）
      const cleanText = text.replace(/-/g, '');
      navigator.clipboard.writeText(cleanText).then(() => {
        alert('已复制：' + cleanText);
      }).catch(err => {
        console.error('复制失败: ', err);
        alert('复制失败，请手动选择');
      });
    }
  </script>
</body>
</html>